<template>
	<view class="contactUs_container">
		<view class="banner">
			<image src="@/static/contact/banner.png" mode="scaleToFill" class="img"></image>
		</view>
		<view class="companyName">
			上海同九健康科技有限公司
		</view>
		<div class="phoneANDaddress">
			<div class="phoneItem">
				<img @click="phoneCall" src="@/static/contact/phone.png" alt="" />
				<div @click="phoneCall" class="text label">联系电话:</div>
				<div @click="phoneCall" class="text">021-66696967</div>
			</div>
			<div @click="openMap" class="addressItem">
				<img src="@/static/contact/mapIcon.png" alt="" />
				<div class="text label">联系地址:</div>
				<div class="text">上海市静安区沪太路</div>
				<div class="text">785号新华园B座501-4</div>
			</div>
		</div>
		<div class="map">
			<image src="@/static/contact/staticMap.png" mode="scaleToFill" class="img"></image>
		</div>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			phoneCall() {
				uni.makePhoneCall({
					phoneNumber: '021-66696967'
				});
			},
			openMap() {
				uni.openLocation({
					latitude: 31.266012806942467,
					longitude: 121.4445278543396,
					name: '上海同九健康科技有限公司',
					success: function () {
						console.log('success');
					}
				});
			}
		}
	}
</script>

<style lang="scss">
.contactUs_container {
	padding-bottom: 30rpx;
	
	.banner {
		width: 100vw;
		height: 190rpx;
		
		.img {
			width: 100%;
			height: 100%;
		}
	}
	
	.companyName {
		padding: 90rpx 0 60rpx 0;
		text-align: center;
		font-size: 38rpx;
		font-weight: 700;
		color: #0173bc;
	}
	
	.phoneANDaddress {
		display: flex;
		
		.phoneItem,.addressItem {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			
			img {
				display: block;
				width: 100rpx;
				height: 100rpx;
				margin-bottom: 10rpx;
			}
			
			.text {
				color: #959595;
			}
			
			.label {
				color: #5e5e5e;
			}
		}
		
		.addressItem {
			padding-top: 1.2em;
		}
	}
	
	.map {
		margin-top: calc(60rpx + 1.2em);
		display: flex;
		justify-content: center;
		align-items: center;
		
		.img {
			width: 680rpx;
		}
	}
}
</style>
